home *** CD-ROM | disk | FTP | other *** search
- on cuthead tmp
- global gtextresult
- set gtextresult to EMPTY
- set l to length(tmp) - 1
- repeat with t = 4 to l
- set gtextresult to gtextresult & char t of tmp
- end repeat
- return gtextresult
- end
-
- on devidetext txt
- global gresult, gtextresult
- set gresult to EMPTY
- set gtextresult to EMPTY
- set flag to 0
- set l to length(txt)
- repeat with t = 1 to l
- set c to char t of txt
- if (c = RETURN) and (flag <> 1) then
- set flag to 1
- next repeat
- end if
- if flag = 1 then
- set gresult to gresult & c
- next repeat
- end if
- set gtextresult to gtextresult & c
- end repeat
- return gtextresult
- end
-
- on collecttitle txt
- set r to 0
- repeat with t = 1 to length(txt)
- set c to char t of txt
- if c = RETURN then
- set r to r + 1
- end if
- end repeat
- case r of
- 0:
- set txt to txt & RETURN & RETURN
- 1:
- set txt to txt & RETURN
- end case
- return txt
- end
-